package com.beijiteshop.shop.ui.login.repo

import com.beijiteshop.libcommon.network.repo.BaseRepo
import com.beijiteshop.shop.model.api.request.LoginRequest

/**
 * @Author LiaoZhongKai
 * @Date 2021/3/12 20:14
 * @Description
 */
class UserRepo(private val service: UserService) : BaseRepo() {

    fun getSmsCode(phone: String) = service.getSmsCode(phone)

    fun login(request: LoginRequest) = service.login(request)

    fun wxLogin(code: String) = service.wxLogin(code)

    fun getUserInfo() = service.getUserInfo()

    fun getBindingInfo() = service.getBindingInfo()

    fun bindWeChat(code: String) = service.bindWeChat(code)

    fun bindPhone(request: LoginRequest) = service.bindPhone(request)
}